const { ccclass, property } = cc._decorator;

@ccclass
export default class BgControl extends cc.Component {
	@property
	private moveSpeed = 50

	start() {

	}

	update(dt) {
		// move
		for (let bgNode of this.node.children) {
			bgNode.y -= this.moveSpeed * dt
			if (bgNode.y < -850) {
				bgNode.y += 852 * 2
			}
		}
	}
}
